from tools import *
from config import config
import traceback
import sys
startlog()
info("main", "start")
try:
    import ui.window
    ui.window.start()
except Exception as errors:
    err("main", "Unknown Error["+str(repr(errors)) +
        "]:"+"\n"+traceback.format_exc())
    if config.DEBUG:
        raise
    sys.exit(1)
